package cn.edu.sdjzu.xg.eagl
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Pagination {
    public Pagination() {}
    public Pagination(int pageSize, int pageNo) {
        if(pageNo > 0){
            this.pageNo = pageNo;
        }
        if(pageSize > 0){
            this.pageSize = pageSize;
        }
        public int getPageSize(){
            return pageSize;
        }
        public int getPageNo(){
            return pageNo;
        }
        public int getTotalNum(){
            return totalNum;
        }
        private int pageSize = 5;
        private int pageNo = 1;
        private int totalNum = 1;
    }
}
